package factory.factoryMethod.pizzaOrderSystem.pizzaStore;

import factory.factoryMethod.pizzaOrderSystem.pizza.ChicagoStyleCheesePizza;
import factory.factoryMethod.pizzaOrderSystem.pizza.ChicagoStyleClamPizza;
import factory.factoryMethod.pizzaOrderSystem.pizza.base.Pizza;
import factory.factoryMethod.pizzaOrderSystem.pizzaStore.base.PizzaStore;

public class ChicagoPizzaStore extends PizzaStore {
    @Override
    // concrete factory method
    protected Pizza createPizza(String type) {
        if (type.equals(PizzaStore.CHEESE_PIZZA)) return new ChicagoStyleCheesePizza();
        if (type.equals(PizzaStore.CLAM_PIZZA)) return new ChicagoStyleClamPizza();
        return null;
    }
}
